/*
*  gdialog.h - general dialog windows
*  Copyright (c) 2005 Derek Ingrouville (dergro@users.sourceforge.net)
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU Library General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef _GDIALOG_H
#define _GDIALOG_H

#include <gtk/gtk.h>
#include "msn/session.h"

typedef struct _GGenericInputDialog
{
	GtkDialog *dialog;     /* Window */
	GtkEntry *entry;  /* Text entry  */
	MsnSession *session;   /* Current Session */
} GGenericInputDialog;

typedef GGenericInputDialog GNicknameDialog;
typedef GGenericInputDialog GSendImDialog;
typedef GGenericInputDialog GContactAddDialog;
typedef GGenericInputDialog GGroupAddDialog;

void vobri_display_message (GtkWindow *parent, const gchar *msg);
void vobri_display_warning (GtkWindow *parent, const gchar *warning);
void vobri_display_error (GtkWindow *parent, const gchar *error);
gint vobri_display_yesno (GtkWindow *parent, const gchar *question);

GNicknameDialog *nickname_dialog_new (MsnSession *session);
void nickname_dialog_free (GNicknameDialog *nick_dialog);
/* Returns new nickname, or NULL */
gchar *nickname_dialog_run (GNicknameDialog *nick_dialog);

GSendImDialog *send_im_dialog_new (void);
void send_im_dialog_free (GSendImDialog *imdialog);
/* Returns a valid passport, or NULL */
gchar *send_im_dialog_run (GSendImDialog *imdialog);

GContactAddDialog *contact_add_dialog_new (void);
void contact_add_dialog_free (GContactAddDialog *contactdialog);
/* Returns a new contact, or NULL */
MsnContact *contact_add_dialog_run (GContactAddDialog *contactdialog);

GGroupAddDialog *group_add_dialog_new (void);
void group_add_dialog_free (GGroupAddDialog *groupdialog);
/* Returns a new group name, or NULL */
gchar *group_add_dialog_run (GGroupAddDialog *groupdialog);

#endif /* _GDIALOG_H */
